package com.xcity.game.item.effect;

import com.xcity.db.entity.Player;
import com.xcity.game.item.GameItem;
import com.xcity.game.item.ItemEffect;
import com.xcity.game.item.ItemException;
import com.xcity.game.item.listener.BagListener;

/**
 * 主角获得技能
 * @author yang.li
 *
 */
@Deprecated
public class GetSkillEffect implements ItemEffect {

	
	@Override
	public boolean effect(Player player, GameItem item, int count, BagListener listener) throws ItemException {
//		int skillId = item.getTemplate().getParameter(0);
//		try {
//			player.getSkillManager().addSkill(skillId, Cause.USE_ITEM);
//			return true;
//		} catch (SkillException e) {
//			throw new ItemException(e.getMessage(), e);
//		}
		return false;
	}

}
